package com.zjz.mapper;


import com.zjz.domain.Book;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface BookMapper {

@Select(" select * from book")
    List<Book> findAll();
@Update("update book set bookname=#{bookName} where id=#{id}")
    int update(Book book);
}
